<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="top.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet"  href="static/css/bootstrap.min.css" />
	<style type="text/css">
		body{
				padding-top:50px;
		
		}
	</style>
	
	
</head>
<body class="body">
	
	
	
	
	<div class="container">
	  <div class="row">
	  
		 <!-- 导入左侧部分 -->
		<jsp:include page="side.jsp">
			<jsp:param value="goal" name="tag"/>
		</jsp:include>
		
		<div class="span9">
			<div class="btn-group" style="float:right">
          		<a class="btn" href="#"><i class="icon-cog"></i>操作</a>
          		<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
          		<ul class="dropdown-menu">
            		<li><a href="goal.jspx?m=new"><i class="icon-plus"></i>添加新目标</a></li>
            		<li><a href="#"><i class="icon-zoom-in"></i>浏览所有任务</a></li>
          		</ul>
        	</div>

			<div class="clear"></div>
			
			<c:if test="${fn:length(goalList)==0}">
				当前还没有目标!
			</c:if>
			<c:forEach items="${goalList }" var="goal">
			<ul class="breadcrumb" style="margin-bottom:10px;border-radius: 3px 3px 0 0;margin-top:35px">
				<li class="active">
					<a href="task.jspx?goal=${goal.id }"><i class="icon-th"></i>${goal.name }</a>
				</li>
				<li style="float:right"><i class="icon-edit"></i>
				<a href="edit_goal.jsp" class="link-black">编辑</a>
				
				</li>
			</ul>
			<div class="well">
			<p>${goal.desc }</p>
				<div class="progress progress-danger">
					<div class="bar" style="width: 60%;">已完成60%</div>
			    </div>
			   </div>
			</c:forEach>
			
			
			
			
		</div>
	  </div>
	</div>
	<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript" src="static/js/bootstrap.min.js"></script>
	
</body>
</html>